import Cookies from 'js-cookie'
/*
操作cookie
1：获取：Cookies.get(TokenKey)
2:设置 Cookies.set(TokenKey, token)
3：删除  Cookies.remove(TokenKey)
*/

const TokenKey = 'vue_admin_template_token'

export function getToken () {
  return Cookies.get(TokenKey)
}

export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}
